<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jstl/fmt" %> 
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>编辑文章页面</title>
</head>

<link rel="stylesheet" href="../themes/default/default.css" />
<link rel="stylesheet" href="../plugins/code/prettify.css" />
<script charset="utf-8" src="../js/kindeditor.js"></script>
<script charset="utf-8" src="../lang/zh_CN.js"></script>
<script charset="utf-8" src="../plugins/code/prettify.js"></script>
<script type="text/javascript" src="../plugins/pagebreak/pagebreak.js"></script>
<script>
		KindEditor.ready(function(K) {
			var editor1 = K.create('textarea[name="content"]', {
				cssPath : '../plugins/code/prettify.css',
				uploadJson : 'upload_json.jsp',
				fileManagerJson : 'file_manager_json.jsp',
				allowFileManager : true,
				items : [
				         'source', '|', 'preview','|', 'justifyleft', 'justifycenter', 'justifyright',
				         'justifyfull', 'insertorderedlist', 'insertunorderedlist', '|', 'indent', 'outdent', 'subscript', '|',
				         'superscript', 'clearhtml', 'quickformat', 'selectall', '|','formatblock', 'fontname', 'fontsize', '|', 'forecolor', 'hilitecolor', 'bold',
				         'italic', 'underline', 'strikethrough', 'lineheight','/', 'removeformat', '|', 'image', 
						 'table', 'hr',  'pagebreak','anchor', 'link', 'unlink', '|', 'about'
				 ],
				afterCreate : function() {
					var self = this;
					K.ctrl(document, 13, function() {
						self.sync();
						document.forms['update-article_form'].submit();
					});
					K.ctrl(self.edit.doc, 13, function() {
						self.sync();
						document.forms['update-article_form'].submit();
					});
				}
			});
			prettyPrint();
		});
	</script>
<body>
<div id="main">
          
		<div id="wrapper">
			 <h4>修改用户的基本信息:</h4>
		  	 <form name="update-form" action="update-article.do" method="post" id="update-article_form">
		  	   		 <div id="pop_update_user" class="easyDialog_content my_content">
		  	    		<span> </span><input name="articleId" type="hidden" value="${article.id }" class="text"/></br>
		  	    		<span>标题：   </span><input name="title" type="text" value="${article.title }" class="text"/></br>
		  	    		<span>来源：   </span><input  name="source" type="text" value="${article.source }" class="text"/></br>
		  	    		<span>发布日期：</span>
		  	    		
		  	    		<input name="releaseDate"  type="text" value='<fmt:formatDate value="${article.releaseDate }" type="date" timeStyle="full"/>' class="text"/></br>
		  	    		<textarea name="content" cols="100" rows="8" style="width:700px;height:400px;visibility:hidden;">
							${article.content }
						</textarea>
						<br />
						
				<input type="submit" value="提交" class="btn btn_highlight" /><input type="reset" value="重置" class="btn btn_normal"/>(提交快捷键: Ctrl + Enter)
		  	    </div>
		  	 </form>
		</div>
    </div>
</body>
</html>